//
//  TSCMyDialog2.h
//  Tsc_IOS
//
//  Created by Rio on 15-6-17.
//  Copyright (c) 2015年 idream. All rights reserved.
//

#import <UIKit/UIKit.h>
@class TSCLinearLayout;

@class TSCMyDialog;

typedef void(^BOnClickListener)(UIButton * btn, TSCMyDialog * dialog);


@interface TSCMyDialog : UIView

@property (nonatomic, assign) CGFloat textSize;
@property (nonatomic, copy) NSString * titleText;
@property (nonatomic, copy) NSString * processingMsgText;
@property (nonatomic, copy) NSString * msgText;
@property (nonatomic, strong) UIView * customView;
@property (nonatomic, copy) NSString * leftBtnText;
@property (nonatomic, copy) NSString * middleBtnText;
@property (nonatomic, copy) NSString * rightBtnText;
@property (nonatomic, strong) BOnClickListener leftBtnOnClickListener;
@property (nonatomic, strong) BOnClickListener middleBtnOnClickListener;
@property (nonatomic, strong) BOnClickListener rightBtnOnClickListener;

@property (nonatomic, assign, readonly) BOOL isShowing; // 当前是否显示

@property (nonatomic, strong) TSCLinearLayout * dialog;



//- (id) initWithViewController:(UIViewController *)vc;
- (void) show;
- (void) dismiss;
- (void) replaceContentViewWithOtherDialog:(TSCMyDialog *)otherDialog;

@end
